package com.chushouya.product.dto.admin.skuevaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * SKU估价项目选项新增DTO
 */
@Data
@ApiModel(value = "SKU估价项目选项新增DTO")
public class SkuEvaluateItemValueSaveDTO {

    @ApiModelProperty(value = "SKU估价项目ID", required = true)
    @NotNull(message = "SKU估价项目ID不能为空")
    private Long skuItemId;

    @ApiModelProperty(value = "项目选项ID", required = true)
    @NotNull(message = "项目选项ID不能为空")
    private Long valueId;

    @ApiModelProperty(value = "项目选项名称", required = true)
    @NotBlank(message = "项目选项名称不能为空")
    private String valueName;

    @ApiModelProperty(value = "扣减金额/比例")
    private BigDecimal value;

    @ApiModelProperty(value = "计算方式")
    private Integer calcType;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    private Integer status;
}
